package cn.zd.thumbbackend.util;

import cn.zd.thumbbackend.constant.ThumbConstant;

/**
 * RedisKey 工具类
 */
public class RedisKeyUtil {
    
    public static String getUserThumbKey(Long userId) {
        return ThumbConstant.USER_THUMB_KEY_PREFIX + userId;
    }
    
    /**
     * 获取 临时点赞记录 key
     *
     * @param time time
     * @return return
     */
    public static String getTempThumbKey(String time) {
        return ThumbConstant.TEMP_THUMB_KEY_PREFIX.formatted(time);
    }
    
    
}
